package pathways.Database.Interfaces;

/**
 * Title:        Pathways
 * Description:  Pure Java version of the Pathways Project.
 * Copyright:    Copyright (c) 2002
 * Company:      Ants Technologies
 * @author Veejay Sani
 * @version 1.0
 */

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;

public interface IDBConnection 
{
  public void setClass(String className) throws ClassNotFoundException;
  public void setConnect(String url) throws SQLException;
  public Connection getConnection();
  public ResultSet runQuery(String sqlQuery);
  public int runUpdate(String updateQuery);
  public void beginTrans() throws SQLException;
  public void commitTrans() throws SQLException;
  public void rollbackTrans() throws SQLException;
  public boolean isTransActive();
}